package com.item.service;

import com.item.dao.EssenceNewMapper;
import com.item.dao.model.EssenceNew;
import com.item.dao.model.EssenceNewExample;
import java.util.List;
import org.apache.log4j.Logger;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class EssenceNewService {
    @Autowired
    private EssenceNewMapper essenceNewMapper;

    private static final Logger logger = Logger.getLogger(EssenceNewService.class);

    public int countByExample(EssenceNewExample example) {
        return this.essenceNewMapper.countByExample(example);
    }

    public EssenceNew selectByPrimaryKey(String id) {
        return this.essenceNewMapper.selectByPrimaryKey(id);
    }

    public List<EssenceNew> selectByExample(EssenceNewExample example) {
        return this.essenceNewMapper.selectByExample(example);
    }

    public int deleteByPrimaryKey(String id) {
        return this.essenceNewMapper.deleteByPrimaryKey(id);
    }

    public int updateByPrimaryKeySelective(EssenceNew record) {
        return this.essenceNewMapper.updateByPrimaryKeySelective(record);
    }

    public int updateByPrimaryKey(EssenceNew record) {
        return this.essenceNewMapper.updateByPrimaryKey(record);
    }

    public int deleteByExample(EssenceNewExample example) {
        return this.essenceNewMapper.deleteByExample(example);
    }

    public int updateByExampleSelective(EssenceNew record, EssenceNewExample example) {
        return this.essenceNewMapper.updateByExampleSelective(record, example);
    }

    public int updateByExample(EssenceNew record, EssenceNewExample example) {
        return this.essenceNewMapper.updateByExample(record, example);
    }

    public int insert(EssenceNew record) {
        return this.essenceNewMapper.insert(record);
    }

    public int insertSelective(EssenceNew record) {
        return this.essenceNewMapper.insertSelective(record);
    }
}